package cn.edu.zut.hhr.entity;

import cn.edu.zut.hhr.entity.Base;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author hhr
 * @since 2021-06-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Commodity extends Base {

    private static final long serialVersionUID = 1L;

    private String cname;

    private Double price;

    private Double vipPrice;

    /**
     * 现存数目
     */
    private Integer count;

    private String img;

    @TableField(exist = false)
    private List<String> location = new ArrayList<>();
    @TableField(exist = false)
    private List<String> type = new ArrayList<>();


}
